<!-- <button class="btn btn-default no-shadow gotopd" id="gotopd" ui-scroll="app" title="回到顶部">
    <i class="fa fa-chevron-up"></i>
</button>
<button class="btn btn-default no-shadow godown" id="godown" ui-scroll="app-footer" title="回到底部">
    <i class="fa fa-chevron-down"></i>
</button> -->
<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">应收管理</h1>
</div>
<div class="wrapper-sm" ng-controller="receivableManagentController">
	<div class="panel panel-default">
		<div class="panel-heading font-bold curpoint">查询<i class="pull-right fa fa-angle-right" ng-class="{'fa-angle-down': Ostatus, 'fa-angle-right': !Ostatus}"></i></div>
		<div class="panel-body collapse in" id="collapseD">
			<label class="control-label pull-left m-t-xs w-xs">客户单位</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="receivableManagent_clientName" ng-model="queryTerms.clientName" placeholder="请输入客户单位" name="clientName">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">结算单位</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="receivableManagent_settle" ng-model="queryTerms.settle" placeholder="请输入结算单位" name="settle">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">应收总编号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="receivableManagent_receivableSettleBillCode" ng-model="queryTerms.receivableSettleBillCode" placeholder="请输入应收总编号"
					name="receivableSettleBillCode">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">合同号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="receivableManagent_contractNumber" ng-model="queryTerms.contractNumber" placeholder="请输入合同号" name="contractNumber">
			</div>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left m-t-xs w-xs">车牌号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="receivableManagent_carCode" ng-model="queryTerms.carCode" placeholder="请输入车牌号" name="carcode">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">发货起始时间</label>
			<div class="col-md-2 col-xs-12 form-group">
				<div class="input-group input-group-sm date">
					<input id="starttime" datetimepicker plugintype="datetime" ng-model="queryTerms.startTime" placeholder="起始时间" class="form-control" type="text"
					/>
					<span id="openstarttime" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">发货结束时间</label>
			<div class="col-md-2 col-xs-12 form-group">
				<div class="input-group input-group-sm date">
					<input id="endtime" datetimepicker plugintype="datetime" ng-model="queryTerms.endTime" placeholder="结束时间" class="form-control" type="text"
					/>
					<span id="openendtime" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">回单状态</label>
			<div class="col-md-2 form-group">
				<select class="form-control input-sm" id="receivableManagent_receiptStatus" name="receiptStatus" ng-model="queryTerms.receiptStatus" ng-options="x.value as x.text for x in receiptStatusDropDown">
                        <option value="">全部</option>
                    </select>
			</div>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left m-t-xs w-xs">结算状态</label>
			<div class="col-md-2 form-group">
				<select class="form-control input-sm" id="receivableManagent_settleStatus" name="settleStatus" ng-model="queryTerms.settleStatus" ng-options="x.value as x.text for x in settleStatusDropDown">
                        <option value="">全部</option>
                    </select>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">发货地址</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="receivableManagent_origin" ng-model="queryTerms.origin" placeholder="请输入发货地址" name="origin">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">送货地址</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="receivableManagent_destination" ng-model="queryTerms.destination" placeholder="请输入送货地址" name="destination">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">应收费用类型</label>
			<div class="col-md-2 form-group">
				<select class="form-control input-sm" ng-model="queryTerms.feeType" id="receivableManagent_feeType" name="feeType" ng-options="x.value as x.text for x in receivableFeeTypeDropDown">
                        <option value="">全部</option>
                    </select>
			</div>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left m-t-xs w-xs">订单状态</label>
			<div class="col-md-2 form-group">
				<select class="form-control input-sm" ng-model="queryTerms.orderStatus" name="orderStatus" id="receivableManagent_orderStatus" ng-options="x.value as x.text for x in orderStatusDropDown">
					<option value="">全部</option>
				</select>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">货物名称</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="receivableManagent_goodsName" ng-model="queryTerms.goodsName" placeholder="请输入货物名称" name="goodsName">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">结算单据状态</label>
			<div class="col-md-2 form-group">
				<select class="form-control input-sm" ng-model="queryTerms.receiptBillStatus" name="orderStatus" id="receivableManagent_receiptBillStatus" ng-options="x.value as x.text for x in receiptBillStatusDropDown">
					<option value="">全部</option>
				</select>

			</div>
			<label class="control-label pull-left m-t-xs w-xs"></label>
			<div class="col-md-2 col-xs-12">
				<button ng-click="queryFunc()" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                        <i class="fa fa-search" ng-show="!querying"></i>
                        <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                        <span ng-show="!querying">查询</span>
                        <span ng-show="querying">查询中...</span>
                    </button>
			</div>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">
			应收列表
		</div>
		<div class="table-responsive">
			<div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize style="height:{{Lheight}}px; min-height:395px; min-width:1000px; overflow-y:hidden;">
				<div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="form-group">
				<button ng-click="exportFunc()" ng-show="expectDis" class="pull-right-xs btn btn-sm btn-success btn-addon "><i class="fa fa-download"></i>导出报表</button>
				<label class="control-label m-t-xs w-xs">费用合计</label>
				<label class="control-label m-t-xs w-xs">{{totalReceivable}}</label>
			</div>
		</div>
	</div>
</div>